package com.aat.dxfy.utils;

import java.math.BigDecimal;

public class BigDataCount {
	
	public static BigDecimal plusAB(String a,String b){
		BigDecimal bignum1 = new BigDecimal(a);  
		BigDecimal bignum2 = new BigDecimal(b);  
		BigDecimal bignum3 =  bignum1.add(bignum2); 
		return bignum3;
	}
	
	public static BigDecimal subAB(String a,String b){
		BigDecimal bignum1 = new BigDecimal(a);  
		BigDecimal bignum2 = new BigDecimal(b);  
		BigDecimal bignum3 =  bignum1.subtract(bignum2); 
		return bignum3;
	}
	
	public static BigDecimal mulAB(String a,String b){
		BigDecimal bignum1 = new BigDecimal(a);  
		BigDecimal bignum2 = new BigDecimal(b);  
		BigDecimal bignum3 =  bignum1.multiply(bignum2); 
		return bignum3;
	}
	
	public static BigDecimal divideAB(String a,String b){
		BigDecimal bignum1 = new BigDecimal(a);  
		BigDecimal bignum2 = new BigDecimal(b);  
		BigDecimal bignum3 =  bignum1.divide(bignum2); 
		return bignum3;
	}

	public static void main(String[] args) {
		String a = "100";
		String b = "5";
		
		System.out.println(plusAB(a, b).toString());
		System.out.println(subAB(a, b));
		System.out.println(mulAB(a, b));
		System.out.println(divideAB(a, b));

	}

	
}
